//
//  FTMediator+FTBundle.m
//  FTBundle_Category
//
//  Created by JackieYip on 2017/5/25.
//  Copyright © 2017年 mondial-d. All rights reserved.
//

#import "FTMediator+FTBundle.h"
#import "FTBundle_Macro.h"

@implementation FTMediator (FTBundle)
- (NSBundle *)FTBundle_bundle
{
    return [self performTarget:kTarget_FTBundle action:kAction_bundle params:nil shouldCacheTarget:NO shouldReturnValue:YES];
}
- (void)FTBundle_setupWithLanguageLocaleIdentifier:(NSString *)languageLocaleIdentifier
{
    NSMutableDictionary *parameters = [NSMutableDictionary dictionary];
    if (languageLocaleIdentifier.length > 0) parameters[kParamsKey_languageLocaleIdentifier] = languageLocaleIdentifier;
    
    [self performTarget:kTarget_FTBundle action:kAction_setupWithLanguageParames params:parameters shouldCacheTarget:NO shouldReturnValue:NO];
}
@end
